package com.sh.cloudrender.application.service;

import com.sh.cloudrender.application.dto.access.AccessDTO;

import java.util.List;

public interface AccessService {

    AccessDTO create(String userId);

    boolean disable(String userId, String accessKey);

    boolean updateUsedTime(String userId, String accessKey);

    AccessDTO findBy(String userId, String accessKey);

    List<AccessDTO> listBy(String userId);

    boolean validate(String userId, String accessKey, String accessSecret);

    boolean addressValidate(String accessKeySHA256, String engineId);
}
